<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<script>
$(function(){
	$( "#tabs" ).tabs();
	$("#pre").click(function(){
		location.href="gallery.do?mode=best_weekly&page=${param.page-1}";
	});	
	$("#post").click(function(){
		location.href="gallery.do?mode=best_weekly&page=${param.page+1}";
	});
});
</script>
<style>
	.ui-tabs-panel{
		height: 2800px;
	}
</style>
<div id="tabs">
    <ul>
	    <c:if test="${requestScope.lvo.pagingBean.previousPageGroup }">
			<li><div id="pre">◁</div></li> 
		</c:if>
	    <c:forEach var="wlist"  items="${requestScope.lvo.list }">
       <li><a href="gallery.do?mode=weekly&best=${wlist.bestPrimary }">${wlist.month }월 ${wlist.week }주</a></li>
	    </c:forEach>
	     <c:if test="${requestScope.lvo.pagingBean.nextPageGroup }">
	          <li><div id="post">▷</div></li>
	     </c:if>
    </ul>    
</div>
